package com.boe.service.impl;

import com.boe.dao.UserDao;
import com.boe.dao.impl.UserDaoImpl;
import com.boe.domain.User;
import com.boe.service.UserService;

public class UserServiceImpl implements UserService {

    @Override
    public User login(User user){

        //调用DAO层的方法去数据库查询
        UserDao userDao = new UserDaoImpl();
        return userDao.login(user);
    }

}
